const state = {
    followStatus: [],
    mediaList:[],
    channelList:[]
}

const mutations = {

    // 设置跟进状态
    SET_FOLLOW_STATUS: (state, list) => {
        state.followStatus = list
    },

    // 设置媒体列表
    SET_MEDIA_LIST: (state, list) => {
        state.mediaList = list
    },

    // 设置渠道列表
    SET_CHANNEL_LIST: (state, list) => {
        state.channelList = list
    },

}

const actions = {
    // 设置跟进状态
    setFollowStatus({ commit }, list) {
        commit('SET_FOLLOW_STATUS', list)
    },

     // 设置跟进状态
     setMediaList({ commit }, list) {
        commit('SET_MEDIA_LIST', list)
    },

    // 设置渠道状态
    setChannelList({ commit }, list) {
        commit('SET_CHANNEL_LIST', list)
    },
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
